<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<br><br>

<c:if test="${not empty message }">
	<font color="red">${message }</font>
</c:if>

<c:choose>
	<c:when test="${ empty sessionScope.user}">
		<form action="/${initParam.context_root}/login.do" method="post">
			<table  cellpadding="3px" border="1px" height="150px">
				<tr bgcolor="lightblue">
					<td colspan="2" align="center"><b>로그인</b>
					</td>
				</tr>
				<tr>
					<td bgcolor="lightgray" width="15px" align="center">ID</td>
					<td><input type="text" name="id"></td>
				</tr>
				<tr>
					<td bgcolor="lightgray">PW</td>
					<td><input type="password" name="password"></td>
				<tr>
					<td colspan="2" align="center">
						<input type="submit" value="로그인"> <input type="reset" value="취소">
					</td>
				</tr>
			</table>
			
		</form>
	</c:when>
	<c:when test="${ not empty sessionScope.user}">
		<br>
		<a href="/${initParam.context_root}/logout.do">로그아웃</a><br>
		<iframe src="/${initParam.context_root}/typeTen.do" width="195px" height="250px" frameborder="0" scrolling="no"></iframe>
	</c:when>
</c:choose>

<br><br>